package com.hsy.crm.web.domain.vo.storeCheck;

import com.hsy.crm.web.domain.entity.BaseEntity;

public class StoneCheckPageVo extends BaseEntity {
    private Long stoneId;

    private Long dateStart;
    private Long dateEnd;
    private String date;

    public Long getDateStart() {
        return dateStart;
    }

    public void setDateStart(Long dateStart) {
        this.dateStart = dateStart;
    }

    public Long getDateEnd() {
        return dateEnd;
    }

    public void setDateEnd(Long dateEnd) {
        this.dateEnd = dateEnd;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        String[] dates = date.split("~");
        dateStart = parse(dates[0].trim()+" 00:00:00").getTime();
        dateEnd = parse(dates[1].trim()+" 23:59:59").getTime();

        this.date = date;
    }

    public Long getStoneId() {
        return stoneId;
    }

    public void setStoneId(Long stoneId) {
        this.stoneId = stoneId;
    }
}
